<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <title>美业红</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1">
        <link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
        <link href="/public/css/main.css" rel="stylesheet">
        <script type='text/javascript' src='/public/js/jquery-3.1.1.min.js'></script>
        <script type="text/javascript" src='/public/js/jquery.validate.js'></script>
        <script>
            var _hmt = _hmt || [];
            (function () {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?8d43b5b5d798921b66d689f7a792e6e2";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
        <script type="text/javascript">
            document.domain = '<?php echo _DOMAIN_ALL_;?>';
        </script>
        <link rel="shortcut icon" type="image/ico" href="/favicon.ico">
    </head>
    <body style="background-color: #f4f4f4;">
        <div class="navigation">
            <div class='navlogo'>
            <img class='_navlogo' src="/public/images/logo.png">
            </div>
            <div class='navson'>
                <ul class='fr'>
                <li><a href="/" class='anchor'><b>主页</b></a></li>
                <li><a href="/" class='anchor'><b>关于我们</b></a></li>
                <li><a href="/" class='anchor'><b>入驻优势</b></a></li>
                <li><a href="/" class='anchor'><b>商家合作</b></a></li>
                <li><a href="/" class='anchor'><b>合作展示</b></a></li>
                <li><a href="/" class='anchor'><b>联系我们</b></a></li>
                <li><a href="/home/store" class='anchor'><b>商家后台</b></a></li>
                </ul>
            </div>
            </div> 
<div class='_main' >
    <div class="login_div">
        <form action='/home/passport/sublogin' method="post" id='login_form'>
            <?php if($_GET["msg"]==1){?>
            <div><font style="color:red">账号或密码错误</font></div>
            <?php }?>
            <div class='form-group'>
                <input type="text" class="form-control" name='account' placeholder="手机号" value=""/>
            </div>
            <div class='form-group'>
                <input type="password" class="form-control" name="password" placeholder="密码" value=""/>
            </div>
            <div class="row">
                <div class="col-md-4"><span class="login_span"><a href="/home/passport/forgetpassword">忘记密码?</a></span>
                </div><div class="col-md-4"></div><div class="col-md-4"><span class="login_span"><a href="/home/passport/apply">申请入驻</a></span></div></div>
            <div class="form-group login_sub">
                <input type="submit" class="btn btn-info" name="登录" value="登录">
            </div>
        </form>
    </div>
</div>
<script type='text/javascript'>
     $("#login_form").validate({
                rules: {  
                    account: {  
                        required:true ,
                        number:true,
                        mobile:true
                        
                    },  
                    password:{  
                        required:true,  
                        rangelength:[6,12] 
                    }
                },  
                messages: {  
                    account: {  
                        required:'请输入手机号' ,
                        number:'请输入手机号' ,
                        mobile:'请输入手机号' 
                    },  
                    password:{  
                         required:'请输入密码：6-12位',  
                         rangelength:'请输入密码：6-12位' 
                    }  
                }  
            });
            jQuery.validator.addMethod("mobile", function(value, element) {
            var length = value.length;
            var mobile = /^(((1[1-9]{1}[0-9]{1})|(15[0-9]{1}))+\d{8})$/
            return this.optional(element) || (length == 11 && mobile.test(value));
            }, "手机号码格式错误");
</script>
<div class="newfooter">
         ©2015-2017 All Rights Reserved ( 京ICP备15010043号 ) 
</div>
</body>
<script type="text/javascript" src='/public/js/top.js'></script>
</html>